package com.sinocare.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MedicalReport implements Serializable {
    private static final long serialVersionUID = -582965165197561318L;

    private Integer reportId;          //报告id
    private String medicalCode;         //项目代号
    private String medicalName;             //项目名称
    private String medicalUnits;        //单位
    private String medicalMethod;           //校验方法
    private String medicalReference;           //参考值
    private Double referenceLow;                //最低参考值
    private Double referenceHigh;               //最高参考值
    private Integer medicalType;                //项目类别
    private Integer medicalAssistType;                //项目协助类型
    private Integer medicalStatus;              //项目结果状态
    private String medicalSuggest;              //结果解读

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("create_time")//表示当前属性名对应的字段名
    private Date createTime;                                //创建时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("update_time")//表示当前属性名对应的字段名
    private Date updateTime;                                //更新时间

    private Integer status;                //状态
    private String remark;                //备注

}
